<div class="activity-collspan" [class.activity-expand]="_isOpen">
    <div class="activity-group-title">
        <span>{{title}}({{_activities ? _activities.length : 0}})</span>
        <i [ngClass]="{'expand-open': _isOpen, 'expand-close':!_isOpen}"
           (click)="_isOpen = !_isOpen"></i>
    </div>
    <div class="empty-block" *ngIf="_activities.length === 0"></div>
    <div class="activity-title" *ngFor="let item of _activities">
        <div class="title-name" [class.black]="item.status && item.status === 3">
            <span (click)="toActivityDetail(item)">
                {{item.name}}</span>
            <span>(跟进状态<i>{{item.trackStatus | rosterTracksPipe:classify}}</i>)</span>
            <i *ngIf="item.moreInfo.length && item.moreInfo.length > 0 || classify== 1"
               (click)="item.isOpen = !item.isOpen"
               [ngClass]="{'expand-open': item.isOpen, 'expand-close':!item.isOpen}"></i>
        </div>
        <div class="activity-detail"
             *ngIf="hasNextPro(item)">
            <div>加保潜能：{{item.level}}</div>
            <div>推荐产品：
                <span>{{item.productNext !== '' ? item.productNext : '无'}}</span>
            </div>
        </div>
        <div class="roster-content" [class.activity-expand]="item.isOpen" *ngIf="classify===0">
            <div class="item" *ngFor="let innerItem of item.moreInfo">
                <div class="key">{{innerItem.label}}</div>
                <div class="value">{{innerItem.value ? innerItem.value : '-'}}</div>
            </div>
        </div>
        <div class="roster-content" [class.activity-expand]="item.isOpen" *ngIf="classify===1">
            <div class="item">
                <div class="key">参与时间</div>
                <div class="value" *ngIf="item.takeTime">{{item.takeTime | unixRsolvedPipe:'YYYY/MM/DD'}}
                </div>
                <div class="value" *ngIf="!item.takeTime">-</div>
            </div>
            <div class="item">
                <div class="key">注册抽奖</div>
                <div class="value">{{item.registerlottery ? item.registerlottery : '-'}}</div>
            </div>
            <div class="item">
                <div class="key">转发抽奖</div>
                <div class="value">{{item.forwardlottery ? item.forwardlottery : '-'}}</div>
            </div>
            <div class="item">
                <div class="key">是否转发</div>
                <div class="value">{{item.isForward ? item.isForward : '-'}}</div>
            </div>
            <div class="item">
                <div class="key">转发点击量</div>
                <div class="value">{{item.forwardClicks ? item.forwardClicks : '-'}}</div>
            </div>
        </div>
    </div>
</div>
